/**
* @file misc_helper_functions.h
* @author Clemens Zangl
* @date 22.05.2012
* @version 0.1
*
* (c) 2012 University of Applied Sciences Karlsruhe
*
* Provides some commonly used helper funcions
** 
*/

#ifndef __MISC_HELPER_FUNCTIONS_H
#define __MISC_HELPER_FUNCTIONS_H

#include "stm32f4_discovery.h"
#include "sensors/LIS302DL/lis302dl.h"


namespace HelperFunctions
{
	template<typename T>
	T abs(T a) 
	{ 
		return a < 0 ? -a : a; 
	}
}

#endif 
